package com.hp.controller;


import com.hp.dto.StudentExcelTemplateDTO;
import com.hp.utils.excel.ExcelTemplateUtil;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hp
 */
@RestController
@RequestMapping("/export")
@Slf4j
public class ExportController {


    @GetMapping("/export-template")
    public void exportTemplate(HttpServletResponse response) {
        ExcelTemplateUtil.exportTemplate("导出模板.xlsx", StudentExcelTemplateDTO.class, response);
    }
}